package com.zbkj.front.controller.assistant;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 会话转接记录表 前端控制器
 */
@Slf4j
@RestController
@RequestMapping("api/front/conversation-transfer")
@Api(tags = "会话-转接记录表") //配合swagger使用

public class AssistantConversationTransferController {
//
//    @Autowired
//    private AssistantConversationTransferService assistantConversationTransferService;
//
//    /**
//     * 分页显示会话转接记录表
//     * @param request 搜索条件
//     * @param pageParamRequest 分页参数
//     * @author keNan
//     * @since 2025-06-11
//     */
//    @ApiOperation(value = "分页列表") //配合swagger使用
//    @RequestMapping(value = "/list", method = RequestMethod.GET)
//    public CommonResult<CommonPage<AssistantConversationTransfer>>  getList(@Validated AssistantConversationTransferSearchRequest request, @Validated PageParamRequest pageParamRequest) {
//        CommonPage<AssistantConversationTransfer> assistantConversationTransferCommonPage = CommonPage.restPage(assistantConversationTransferService.getList(request, pageParamRequest));
//        return CommonResult.success(assistantConversationTransferCommonPage);
//    }
//
//    /**
//     * 新增会话转接记录表
//     * @param assistantConversationTransferRequest 新增参数
//     * @author keNan
//     * @since 2025-06-11
//     */
//    @ApiOperation(value = "新增")
//    @RequestMapping(value = "/save", method = RequestMethod.POST)
//    public CommonResult<String> save(@RequestBody @Validated AssistantConversationTransferRequest assistantConversationTransferRequest) {
//        AssistantConversationTransfer assistantConversationTransfer = new AssistantConversationTransfer();
//        BeanUtils.copyProperties(assistantConversationTransferRequest, assistantConversationTransfer);
//
//        if(assistantConversationTransferService.save(assistantConversationTransfer)) {
//            return CommonResult.success();
//        } else {
//            return CommonResult.failed();
//        }
//    }
//
//    /**
//     * 删除会话转接记录表
//     * @param id Integer
//     * @author keNan
//     * @since 2025-06-11
//     */
//    @ApiOperation(value = "删除")
//    @RequestMapping(value = "/delete", method = RequestMethod.GET)
//    public CommonResult<String> delete(@RequestParam(value = "id") Integer id) {
//        if(assistantConversationTransferService.removeById(id)) {
//            return CommonResult.success();
//        } else {
//            return CommonResult.failed();
//        }
//    }
//
//    /**
//     * 修改会话转接记录表
//     * @param id integer id
//     * @param assistantConversationTransferRequest 修改参数
//     * @author keNan
//     * @since 2025-06-11
//     */
//    @ApiOperation(value = "修改")
//    @RequestMapping(value = "/update", method = RequestMethod.POST)
//    public CommonResult<String> update(@RequestParam Integer id, @RequestBody @Validated AssistantConversationTransferRequest assistantConversationTransferRequest) {
//        AssistantConversationTransfer assistantConversationTransfer = new AssistantConversationTransfer();
//        BeanUtils.copyProperties(assistantConversationTransferRequest, assistantConversationTransfer);
//        assistantConversationTransfer.setId(id);
//
//        if(assistantConversationTransferService.updateById(assistantConversationTransfer)) {
//            return CommonResult.success();
//        } else {
//            return CommonResult.failed();
//        }
//    }
//
//    /**
//     * 查询会话转接记录表信息
//     * @param id Integer
//     * @author keNan
//     * @since 2025-06-11
//     */
//    @ApiOperation(value = "详情")
//    @RequestMapping(value = "/info", method = RequestMethod.GET)
//    public CommonResult<AssistantConversationTransfer> info(@RequestParam(value = "id") Integer id) {
//        AssistantConversationTransfer assistantConversationTransfer = assistantConversationTransferService.getById(id);
//        return CommonResult.success(assistantConversationTransfer);
//    }
}



